# include <iostream>
#include <list>
using namespace std;
void printList(const list<int>&l){
    for (list<int>::const_iterator it =l.begin();it!=l.end();it++) {
cout<<*it<<" ";
    }
    cout<<endl;
}
void test01(){
    list<int>l1;
    l1.push_back(12);
    l1.push_back(12);
    l1.push_back(12);
    l1.push_back(132);
    l1.push_back(122);
    printList(l1);
    list<int>l2(l1.begin(),l1.end());
    printList(l2);
    list<int>l3(l2);
    printList(l3);
    list<int>l4(10,1000);
    printList(l4);
}
int main() {
test01();
    system("pause");
    return 0;
}
